import random
sum = 10000
for i in range(1, 21):
    num = random.randint(a=1, b=10)
    if num < 5:
        print(f"员工{i}，绩效分{num}，低于5，不发工资，下一位。")
        continue
    else:
        print(f"向员工{i}发放工资1000元，账户余额还剩下{sum-1000}")
        sum -= 1000
        if sum == 0:
            print("工资发完了，下个月领取吧。")
            break
